package wondersgroup.hsswidget;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import wondersgroup.hsswidget.fragments.ListViewInScrollview;
import wondersgroup.hsswidget.fragments.NestScrollFragment;
import wondersgroup.hsswidget.fragments.Touch1Fragment;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        touch1Fragment();

    }

    void listViewInScrollview(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new ListViewInScrollview()).commit();
    }


    void nestScrollFragment(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new NestScrollFragment()).commit();
    }

    void touch1Fragment(){
        getSupportFragmentManager().beginTransaction().add(R.id.frame, new Touch1Fragment()).commit();
    }
}
